package com.ssm.common;

import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by asus on 2017/7/14.
 */
public interface AbstractDao<T> {
    void insert(T t) throws Exception;
    void update(T t) throws Exception;
    void delete(@Param("key") String ukfield, @Param("value") Object value) throws Exception;
    T select(@Param("key")String ukfield,@Param("value")Object value) throws Exception;
    boolean exsits(@Param("key")String ukfield,@Param("value")Object value) throws Exception;
    List<T> selectLike(@Param("key")Object key) throws Exception;
    List<T> selectAllInformation() throws Exception;
    List<T> selectList(@Param("key")String ukfield,@Param("value")Object value) throws Exception;
    List<T> selectlimit(@Param("page")int page,@Param("number")int number) throws Exception;
}
